package com.css.zfzx.fxpg.modules.percent.damage.viewobjects;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author leon
 * @date 2020-11-13
 */
@Data
public class FxDamagePercentVO implements Serializable, IExcelDataModel, IExcelModel {
    private Integer rowNum;
    private String errorMsg;

    @NotNull(message = "缺失")
    @Excel(name = "结构类型", width = 15)
    private String structureType;

    @NotNull(message = "缺失")
    @Excel(name = "基本完好", width = 15)
    private String intact;

    @NotNull(message = "缺失")
    @Excel(name = "轻微破坏", width = 15)
    private String slight;

    @NotNull(message = "缺失")
    @Excel(name = "中等破坏", width = 15)
    private String medium;

    @NotNull(message = "缺失")
    @Excel(name = "严重破坏", width = 15)
    private String serious;

    @NotNull(message = "缺失")
    @Excel(name = "完全破坏", width = 15)
    private String whole;
}